package com.ch02.ex31;

/**
 * Created by zc on 2016/2/14.
 */
public class Main {

    public static void main(String[] args){
        Videoconference videoconference = new Videoconference(10);

        Thread threadConference  = new Thread(videoconference);
        threadConference.start();

        for(int i=0; i<10; i++){
            Participant participant = new Participant(videoconference,"Participant " + i);
            Thread thread = new Thread(participant);
            thread.start();
        }
    }
}
